from celery import Celery

sms_app = Celery(
    broker='amqp://guest@localhost//',  # 消息队列的url
    # backend='amqp://guest@localhost//',  # 将调用的结果存储到MQ中
    # backend='redis://localhost:6379/5'  # 将调用的结果存储到Redis中
)

# sms_app.send_task('sms.send_template_sms',args=['15730201075', ('666666', '5')])